<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    {{ msg }}
    {{ isBeauty? '大美女': '你是个好姑娘' }}
    {{ 2+4*3 }}
    {{ 你好世界 }}

    <hr>
    {{ parseInt('1.345') }}
    <!-- {{ alert(123) }} -->
  </div>

  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      data: {
        msg: '你好vue',
        isBeauty: false
      },
      methods: {
        fn(){
          this.msg = "数据改变了"
        }
      }
    })
    // 外部挂载实例
    vm.$mount("#app")
    console.log(vm);
  
  </script>
</body>
</html>